package com.gx;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.data.mongo.MongoDataAutoConfiguration;
import org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.PropertySource;

//@EnableCaching  //开启支持缓存
@MapperScan(basePackages = {"com.gx.mapper"})
@SpringBootApplication(exclude = {MongoAutoConfiguration.class, MongoDataAutoConfiguration.class})
@PropertySource(value = {"file:/opt/webserver/config/gx-projects.properties"}, ignoreResourceNotFound = true)
public class WebStartApp {
    public static void main(String[] args) {
        SpringApplication.run(WebStartApp.class,args);
    }
}
